//
//  TypeModel.m
//  瓜子电台
//
//  Created by Jackson on 16/8/9.
//  Copyright © 2016年 YueZhang. All rights reserved.
//

#import "TypeModel.h"

@implementation TypeModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

+(NSMutableArray *)ModelConfigureWithJsonDic:(NSDictionary *)jsonDic {
    NSMutableArray *array = [NSMutableArray array];
    NSDictionary *dictionary = jsonDic[@"data"];
    NSArray *arr = dictionary[@"categories"];
    for (NSDictionary *dic  in arr) {
        TypeModel *model = [[TypeModel alloc] init];
        model.idd = dic[@"id"];
        [model setValuesForKeysWithDictionary:dic];
        [array addObject:model];
    }
    return array;
}


@end
